<template>
    <div class="form-container">
        <slot></slot>
    </div>
</template>
<script>
import {useForm, useFormProvide} from '../hooks';
import {defineComponent} from 'vue';

export default defineComponent({
    props: {
        initialValues: Object,
        initialValidators: Object,
        validateOnChange: Boolean,
        validateOnBlur: Boolean,
        options: Object
    },
    setup(props) {
        const form = useForm(props);
        useFormProvide(form);
        return {
            form
        };
    }
});
</script>